home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL CCCChhhhaaaarrrraaaacccctttteeeerrrr RRRReeeennnnddddeeeerrrreeeerrrr ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt((((3333GGGG)))) NNNNAAAAMMMMEEEE ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt,,,, ggggllllccccDDDDeeeelllleeeetttteeeeCCCCoooonnnntttteeeexxxxtttt - generate or delete a context CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN GLint ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt( void ) CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN void ggggllllccccDDDDeeeelllleeeetttteeeeCCCCoooonnnntttteeeexxxxtttt( GLint _i_n_C_o_n_t_e_x_t ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _i_n_C_o_n_t_e_x_t Specifies the ID of the context to be deleted. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt generates a new context and returns its ID. ggggllllccccDDDDeeeelllleeeetttteeeeCCCCoooonnnntttteeeexxxxtttt marks the context specified by _i_n_C_o_n_t_e_x_t for deletion. If the marked context is not current to any client thread, the command deletes the marked context immediately. Otherwise, the marked context is deleted when the context is no longer current to any client's thread. A GLC context is an instantiation of GLC. When a client thread issues a GLC command, the thread's current GLC context executes the command. Each GLC context has a nonzero ID of type GGGGLLLLiiiinnnntttt. When the ID of a GLC context is stored in the GLC context ID variable of a client thread, the context is said to be current to the thread. It is not possible for a GLC context to be current simultaneously to multiple threads. With the exception of the per-thread GLC error code and context ID variables, all of the GLC state variables that are used during the execution of a GLC command are stored in the issuing thread's current GLC context. To make a context current, call ggggllllccccCCCCoooonnnntttteeeexxxxtttt. Note that the results of issuing a GL command when there is no current GL context are undefined. Because GLC issues GL commands, you must create a GL context and make it current before calling GLC. EEEERRRRRRRROOOORRRRSSSS GGGGLLLLCCCC____PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR____EEEERRRRRRRROOOORRRR is generated if _i_n_C_o_n_t_e_x_t is not the ID of one of the client's GLC contexts. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS ggggllllccccGGGGeeeettttAAAAllllllllCCCCoooonnnntttteeeexxxxttttssss, ggggllllccccIIIIssssCCCCoooonnnntttteeeexxxxtttt SSSSEEEEEEEE AAAALLLLSSSSOOOO ggggllllccccCCCCoooonnnntttteeeexxxxtttt, ggggllllccccGGGGeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooonnnntttteeeexxxxtttt PPPPaaaaggggeeee 1111